<g:javascript library="jquery"/>
<g:javascript src="validate/jquery.validate.js" type="text/javascript"/>
<script language="javascript">
<!--
$(document).ready(function() { 

	//验证部分
		$("#createRemark").validate({
            rules: {
                title : {
					required : true,
                    maxlength : 50
                },
				content : {
					required : true,
                    maxlength : 500
                }
            },
            messages: {
                title : {
					required : "标题必须填写",
                    maxlength : "标题长度不能大于50字"
                },
				content : {
					required : "内容必须填写",
                    maxlength : "内容的长度不能大于500字"
                }
            }
        });
 });
//-->
</script>